
#include <unistd.h>

#include "constant.h"
#include "monitor.h"

WMMonitor::WMMonitor(){

}

void WMMonitor::addWindow(WMWindow *newWindow){
    m_windows_list.insertFirst(newWindow);
}

void WMMonitor::spawnWindow(const char *app){
	if(fork() == 0){
                setsid();
		execl(app, "APP", NULL);
	}
}

